package com.ccys.app.controller;

import com.ccys.app.service.ReceiptService;
import com.ccys.common.vo.ResponseResultApp;
import com.ccys.db.dto.app.receipt.SendDocumentDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: WhiteCoat
 * @description: 收据接口
 * @author: ZhangJingCan
 * @create: 2024-02-07 13:50
 **/

@RestController
@Api(tags = "收据接口")
@RequestMapping("receipt")
public class ReceiptController {

    @Autowired
    private ReceiptService receiptService;

    @ApiOperation("Email as PDF")
    @GetMapping(value = "/SendDocument")
    public ResponseResultApp sendDocument(SendDocumentDto dto) throws Exception {
        return receiptService.sendDocument(dto);
    }

}
